package com.zm.bean;

import lombok.*;

import java.io.Serializable;
import java.util.List;

/**
 * 分页查询结果
 * Created by zcxiao on 2019/06/29.
 */
@AllArgsConstructor
@ToString
@Data
public class PageResult<T extends BaseEntity> implements Serializable {

    private static final long serialVersionUID = 3739432000715879711L;
    /**
     * 当前页码
     */
    private int page;
    /**
     * 总记录数
     */
    private long total;
    /**
     * 每页记录数
     */
    private int pageSize;
    /**
     * 每页数据记录
     */
    private List<T> rows;

}